//
//  GameCountSearchRequest.m
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import "GameCountSearchRequest.h"

@implementation GameCountSearchRequest

- (id)initWithGameType:(NSString*)type
              Delegate:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if (self) {
        self.requestName = @"GameCountSearchRequest";
        self.type = type;
        self.delegate = delegate;
        
        [self.bodyJsonDict setObject:self.type forKey:@"gameType"];
        [self.bodyJsonDict setObject:@"" forKey:@"firstletter"];
        
        [self.headerJsonDict setObject:@"005019" forKey:@"TranCode"];
        [self.headerJsonDict setObject:@"20" forKey:@"TxRecordNum"];
        [self buildJsonRequest];
    }
    return self;
}

- (void)dealloc
{
    self.type = nil;
    [super dealloc];
}

@end
